<extend name="Public/base" />
<block name="meta">
    <title>问答-哈尔滨家家户户网</title>
</block>
<block name="head_css">
	<link rel="stylesheet" href="__ASK__/css/index.pkg.css">
</block>
<block name="content">  
      <div class="container">
        <div class="g-bnav"></div> 
        <!-- 面包屑 -->

        <div class="g-column g-left">
          <div class="row ask-type" id="accordion">
			<notempty name="class_list">
				<volist name="class_list" id="vo" offset="0" length='7' key="j">
		            <div class="ask-type-item">
		              <h3 class="item-hd">
		                <a href="{:U('Ask/article',array('pid'=>$vo['ask_category_id']))}">
		                  <p class="item-icon"
		                  
		                  	<switch name="j">
							<case value="2|3|4|5">style="background: url('__ASK__/img/icon.png') 0 -{:($j-1)*25}px no-repeat;"</case>
							<case value="6">style="background: url('__ASK__/img/icon.png') 0 -128px no-repeat;"</case>
							<case value="7">style="background: url('__ASK__/img/icon.png') 0 -152px no-repeat;"</case>
							</switch>
		                  	></p>
		                  		{$vo.ask_category_name} >
		                </a>
		              </h3>
		              <div class="item-bd">
			          	<notempty name="vo['_child']">
			          		<volist name="vo['_child']" id="vos">
			            		<a href="{:U('Ask/article',array('pid'=>$vos['ask_category_pid'],'id'=>$vos['ask_category_id']))}">{$vos.ask_category_name}</a>
			            	</volist>
		              	</notempty>
		              </div>
		            </div>
	            </volist>
            </notempty>
          </div>
          <div class="row ad" id="ad_1">
          </div>
        </div>
        <!-- 左侧结束 -->

        <div class="g-column g-center">
          <div class="row row-1">
          	<form action="{:U('Ask/search')}">
	            <div class="search">
	              <div class="search-icon"><img src="__ASK__/img/search-icon.png"></div>
	              <input type="text" name="search_text" class="search-inpu" placeholder="提问前请先搜索 看看其他人是否已经问过" />
	            </div>
	            <input type="submit" class="search-btn" id="search-btn" value="搜索答案" />
            </form>
          </div>
          <div class="row row-2">
            <h3 class="sec-hd">精华问答</h3>
            <div class="sec-bd">
            <notempty name="position_article_list">
	       		 <volist name="position_article_list" id="vo" offset="0" length='1'>
		              <div class="pic-show">
		              	<a href="{:U('Ask/detail',array('id'=>$vo['ask_article_id']))}">
		                	<img src="{$vo.pic_id|getPictureThumb=###,300,300}">
		              	</a>
		              </div>
	              </volist>
	              <div class="list-show">
	              <volist name="position_article_list" id="vo" offset="0" length='1'>
	                <p>
	                  <span class="hot-icon">热门</span>
	                  <a href="{:U('Ask/detail',array('id'=>$vo['ask_article_id']))}" class="hot-question">{$vo.ask_article_title|htmlspecialchars|msubstr=###,0,26}</a>
	                </p>
	                <div class="hot-answer">
	                  <p class="answer-icon"></p>
	                  <p>
	                  {$vo.ask_article_content|clearHtml|htmlspecialchars|msubstr=###,0,66}
	                  </p>
	                </div>
	                </volist>
	                <ul class="hot-bd">
	                	<volist name="position_article_list" id="vo" offset="1" length='4'>
	                  		<li><a href="{:U('Ask/detail',array('id'=>$vo['ask_article_id']))}">
	                  		• &nbsp;	{$vo.ask_article_title|htmlspecialchars|msubstr=###,0,16}</a>
	                  		</li>
	                  	</volist>
	                </ul>
	              </div>
              </notempty>
            </div>
          </div>
          <notempty name="new_article_list">
          <div class="row row-3">
            <div class="answer">
              <h3 calss="answer-tit">最新回答</h3>
              <volist name="new_article_list" id="vo" offset="0" length='3'>
	              <div class="answer-txt">
	                <p class="problem">
	                <a href="{:U('Ask/detail',array('id'=>$vo['ask_article_id']))}">Q:{$vo.ask_article_title|htmlspecialchars|msubstr=###,0,38}</a>
	                <p class="first-answer">A: {$vo.ask_article_content|clearHtml|htmlspecialchars|msubstr=###,0,62}</p>
	              </div>
              </volist>
            </div>

            <div class="answer">
              <h3 calss="answer-tit">最热回答</h3>
              <volist name="new_article_list" id="vo" offset="3" length='3'>
	              <div class="answer-txt">
	                <p class="problem">
	                <a href="{:U('Ask/detail',array('id'=>$vo['ask_article_id']))}">Q:{$vo.ask_article_title|htmlspecialchars|msubstr=###,0,38}</a>
	                <p class="first-answer">A: {$vo.ask_article_content|clearHtml|htmlspecialchars|msubstr=###,0,62}</p>
	              </div>
              </volist>
            </div>
          </div>
          <div class="row row-4">
            <h3>等你抢答</h3>
            <ul>
	            <volist name="new_article_list" id="vo" offset="6" length='8'>
	              <li>
	                <div class="num-look">
	                  <p>{$vo.ask_article_id|randGoodsFollowCount|msubstr=###,0,5}</p>
	                  <p>浏览</p>
	                </div>
	                <div class="question-1">
	                  <a href="{:U('Ask/detail',array('id'=>$vo['ask_article_id']))}">{$vo.ask_article_title|htmlspecialchars|msubstr=###,0,18}</a>
	                  <span class="before">{$vo.create_time|time_format=###}</span>
	                </div>
	              </li>
	            </volist>
            </ul>
          </div>
          </notempty>
        </div>
        <!-- 中间结束 -->

        <div class="g-column g-right">
          <div class="row ad-3" id="ad_2">
          </div>
          <notempty name="tags_list">
          <div class="row label">
            <p class="h1">最新标签</p>
            <ul class="label-list new-list">
	            <volist name="tags_list" id="vo">
	              <li><a href="{:U('Ask/search',array('id'=>$key))}">{$vo}</a></li>
	            </volist>	
            </ul>
          </div>
          </notempty>
        </div>
	</div>
</block>
<block name="foot_js">
    <script src="__ASK__/js/index.pkg.js"></script>
    <script src="{:U('Ad/index',array('id'=>'1,2'))}"></script>
</block>     